package com.gaxy.subject.infra.basic.service;

import com.gaxy.subject.common.entity.PageResult;
import com.gaxy.subject.infra.basic.entity.SubjectInfoES;

/**
 * ESService
 *
 * @author Gaxy
 * @create 2024/06/25/上午 11:41
 */
public interface SubjectESService {

    /**
     * ES插入数据
     * @param subjectInfoES
     * @return
     */
    boolean insert(SubjectInfoES subjectInfoES);

    /**
     * ES查询题目
     * @param subjectInfoES
     * @return
     */
    PageResult<SubjectInfoES> querySubjectList(SubjectInfoES subjectInfoES);
}
